procedure GetMediaHandlerDescription (theMedia: Media; var mediaType: OSType; var creatorName: Str255; var creatorManufacturer: OSType);
{$IFC NOT GENERATINGCFM}
inline
$706F, $AAAA;
{$ENDC}
function GetMediaUserData (theMedia: Media): UserData;
{$IFC NOT GENERATINGCFM}
inline
$7070, $AAAA;
{$ENDC}
{************************}
{* Media Handler routines}
{*************************}
function GetMediaHandler (theMedia: Media): MediaHandler;
{$IFC NOT GENERATINGCFM}
inline
$7071, $AAAA;
{$ENDC}
function SetMediaHandler (theMedia: Media; mH: MediaHandlerComponent): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$303C, $190, $AAAA;
{$ENDC}
{************************}
{* Media's Data routines}
{*************************}
function BeginMediaEdits (theMedia: Media): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$7072, $AAAA;
{$ENDC}
function EndMediaEdits (theMedia: Media): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$7073, $AAAA;
{$ENDC}
function SetMediaDefaultDataRefIndex (theMedia: Media; index: INTEGER): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$303C, $1E0, $AAAA;
{$ENDC}
procedure GetMediaDataHandlerDescription (theMedia: Media; index: INTEGER; var dhType: OSType; var creatorName: Str255; var creatorManufacturer: OSType);
{$IFC NOT GENERATINGCFM}
inline
$303C, $19E, $AAAA;
{$ENDC}
function GetMediaDataHandler (theMedia: Media; index: INTEGER): DataHandler;
{$IFC NOT GENERATINGCFM}
inline
$303C, $19F, $AAAA;
{$ENDC}
function SetMediaDataHandler (theMedia: Media; index: INTEGER; dataHandler: DataHandlerComponent): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$303C, $1A0, $AAAA;
{$ENDC}
function GetDataHandler (dataRef: Handle; dataHandlerSubType: OSType; flags: LONGINT): Component;
{$IFC NOT GENERATINGCFM}
inline
$303C, $1ED, $AAAA;
{$ENDC}
{************************}
{* Media Sample Table Routines}
{*************************}
function GetMediaSampleDescriptionCount (theMedia: Media): LONGINT;
function AddMediaSampleReference (theMedia: Media; dataOffset: LONGINT; size: LONGINT; durationPerSample: TimeValue; sampleDescriptionH: SampleDescriptionHandle; numberOfSamples: LONGINT; sampleFlags: INTEGER; var sampleTime: TimeValue): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$707D, $AAAA;
{$ENDC}
function AddMediaSampleReferences (theMedia: Media; sampleDescriptionH: SampleDescriptionHandle; numberOfSamples: LONGINT; sampleRefs: SampleReferencePtr; var sampleTime: TimeValue): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$303C, $1F7, $AAAA;
{$ENDC}
function GetMediaSample (theMedia: Media; dataOut: Handle; maxSizeToGrow: LONGINT; var size: LONGINT; time: TimeValue; var sampleTime: TimeValue; var durationPerSample: TimeValue; sampleDescriptionH: SampleDescriptionHandle; var sampleDescriptionIndex: LONGINT; maxNumberOfSamples: LONGINT; var numberOfSamples: LONGINT; var sampleFlags: INTEGER): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$707E, $AAAA;
{$ENDC}
function GetMediaSampleReference (theMedia: Media; var dataOffset: LONGINT; var size: LONGINT; time: TimeValue; var sampleTime: TimeValue; var durationPerSample: TimeValue; sampleDescriptionH: SampleDescriptionHandle; var sampleDescriptionIndex: LONGINT; maxNumberOfSamples: LONGINT; var numberOfSamples: LONGINT; var sampleFlags: INTEGER): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$707F, $AAAA;
{$ENDC}
function SetMediaPreferredChunkSize (theMedia: Media; maxChunkSize: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$303C, $1F8, $AAAA;
{$ENDC}
function GetMediaPreferredChunkSize (theMedia: Media; var maxChunkSize: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$303C, $1F9, $AAAA;
{$ENDC}
function SetMediaShadowSync (theMedia: Media; frameDiffSampleNum: LONGINT; syncSampleNum: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$303C, $121, $AAAA;
{$ENDC}
function GetMediaShadowSync (theMedia: Media; frameDiffSampleNum: LONGINT; var syncSampleNum: LONGINT): OSErr;
function GetVideoMediaGraphicsMode (mh: MediaHandler; var graphicsMode: LONGINT; var opColor: RGBColor): HandlerError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, $8, $101, $7000, $A82A;
{$ENDC}
function SetVideoMediaGraphicsMode (mh: MediaHandler; graphicsMode: LONGINT; {CONST}
var opColor: RGBColor): HandlerError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, $8, $102, $7000, $A82A;
{$ENDC}
{************************}
{* Sound Media routines}
{*************************}
function GetSoundMediaBalance (mh: MediaHandler; var balance: INTEGER): HandlerError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, $4, $101, $7000, $A82A;
{$ENDC}
function SetSoundMediaBalance (mh: MediaHandler; balance: INTEGER): HandlerError;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, $2, $102, $7000, $A82A;
{$ENDC}
{************************}
{* Text Media routines}
{*************************}
{ Return displayFlags for TextProc }
const
txtProcDefaultDisplay = 0; { Use the media's default}
txtProcDontDisplay = 1; { Don't display the text}
txtProcDoDisplay = 2; { Do display the text}
function SetTextProc (mh: MediaHandler; TextProc: TextMediaUPP; refcon: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, $8, $101, $7000, $A82A;
{$ENDC}
function AddTextSample (mh: MediaHandler; text: Ptr; size: LONGINT; fontNumber: INTEGER; fontSize: INTEGER; textFace: Style; var textColor: RGBColor; var backColor: RGBColor; textJustification: INTEGER; var textBox: Rect; displayFlags: LONGINT; scrollDelay: TimeValue; hiliteStart: INTEGER; hiliteEnd: INTEGER; var rgbHiliteColor: RGBColor; duration: TimeValue; var sampleTime: TimeValue): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, $34, $102, $7000, $A82A;
{$ENDC}
function AddTESample (mh: MediaHandler; hTE: TEHandle; var backColor: RGBColor; textJustification: INTEGER; var textBox: Rect; displayFlags: LONGINT; scrollDelay: TimeValue; hiliteStart: INTEGER; hiliteEnd: INTEGER; var rgbHiliteColor: RGBColor; duration: TimeValue; var sampleTime: TimeValue): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, $26, $103, $7000, $A82A;
{$ENDC}
function AddHiliteSample (mh: MediaHandler; hiliteStart: INTEGER; hiliteEnd: INTEGER; var rgbHiliteColor: RGBColor; duration: TimeValue; var sampleTime: TimeValue): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, $10, $104, $7000, $A82A;
{$ENDC}
const
findTextEdgeOK = $1; { Okay to find text at specified sample time}
findTextCaseSensitive = $2; { Case sensitive search}
findTextReverseSearch = $4; { Search from sampleTime backwards}
findTextWrapAround = $8; { Wrap search when beginning or end of movie is hit}
findTextUseOffset = $10; { Begin search at the given character offset into sample rather than edge}
function FindNextText (mh: MediaHandler; text: Ptr; size: LONGINT; findFlags: INTEGER; startTime: TimeValue; var foundTime: TimeValue; var foundDuration: TimeValue; var offset: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, $1A, $105, $7000, $A82A;
{$ENDC}
function HiliteTextSample (mh: MediaHandler; sampleTime: TimeValue; hiliteStart: INTEGER; hiliteEnd: INTEGER; var rgbHiliteColor: RGBColor): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, $C, $106, $7000, $A82A;
{$ENDC}
const
dropShadowOffsetType = 'drpo';
dropShadowTranslucencyType = 'drpt';
function SetTextSampleData (mh: MediaHandler; data: univ Ptr; dataType: OSType): ComponentResult;
{$IFC NOT GENERATINGCFM}
inline
$2F3C, $8, $107, $7000, $A82A;
{$ENDC}
function MovieSearchText (theMovie: Movie; text: Ptr; size: LONGINT; searchFlags: LONGINT; var searchTrack: Track; var searchTime: TimeValue; var searchOffset: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
inline
$303C, $207, $AAAA;
{$ENDC}
procedure GetPosterBox (theMovie: Movie; var boxRect: Rect);
{$IFC NOT GENERATINGCFM}
inline
$303C, $16F, $AAAA;
{$ENDC}
procedure SetPosterBox (theMovie: Movie; {CONST}
var boxRect: Rect);
{$IFC NOT GENERATINGCFM}
inline
$303C, $170, $AAAA;
{$ENDC}
function GetMovieSegmentDisplayBoundsRgn (theMovie: Movie; time: TimeValue; duration: TimeValue): RgnHandle;
{$IFC NOT GENERATINGCFM}
inline
$303C, $16C, $AAAA;
{$ENDC}
function GetTrackSegmentDisplayBoundsRgn (theTrack: Track; time: TimeValue; duration: TimeValue): RgnHandle;
procedure GetTrackLoadSettings (theTrack: Track; var preloadTime: TimeValue; var preloadDuration: TimeValue; var preloadFlags: LONGINT; var defaultHints: LONGINT);
{$IFC NOT GENERATINGCFM}
inline
$303C, $1E4, $AAAA;
{$ENDC}
const
MovieControllerComponentType = 'play';
type
MovieController = ComponentInstance;
const
mcActionIdle = 1; { no param}
mcActionDraw = 2; { param is WindowPtr}
mcActionActivate = 3; { no param}
mcActionDeactivate = 4; { no param}
mcActionMouseDown = 5; { param is pointer to EventRecord}
mcActionKey = 6; { param is pointer to EventRecord}
mcActionPlay = 8; { param is Fixed, play rate}
mcActionGoToTime = 12; { param is TimeRecord}
mcActionSetVolume = 14; { param is a short}
mcActionGetVolume = 15; { param is pointer to a short}
mcActionStep = 18; { param is number of steps (short)}
mcActionSetLooping = 21; { param is Boolean}
mcActionGetLooping = 22; { param is pointer to a Boolean}
mcActionSetLoopIsPalindrome = 23; { param is Boolean}
mcActionGetLoopIsPalindrome = 24; { param is pointer to a Boolean}
mcActionSetGrowBoxBounds = 25; { param is a Rect}
mcActionControllerSizeChanged = 26; { no param}
mcActionSetSelectionBegin = 29; { param is TimeRecord}
mcActionSetSelectionDuration = 30; { param is TimeRecord, action only taken on set-duration}
mcActionSetKeysEnabled = 32; { param is Boolean}
mcActionGetKeysEnabled = 33; { param is pointer to Boolean}
mcActionSetPlaySelection = 34; { param is Boolean}
mcActionGetPlaySelection = 35; { param is pointer to Boolean}
mcActionSetUseBadge = 36; { param is Boolean}
mcActionGetUseBadge = 37; { param is pointer to Boolean}
mcActionSetFlags = 38; { param is long of flags}
mcActionGetFlags = 39; { param is pointer to a long of flags}
mcActionSetPlayEveryFrame = 40; { param is Boolean}
mcActionGetPlayEveryFrame = 41; { param is pointer to Boolean}
mcActionGetPlayRate = 42; { param is pointer to Fixed}
mcActionShowBalloon = 43; { param is a pointer to a boolean. set to false to stop balloon}
mcActionBadgeClick = 44; { param is pointer to Boolean. set to false to ignore click}
mcActionMovieClick = 45; { param is pointer to event record. change “what” to nullEvt to kill click}
mcActionSuspend = 46; { no param}
mcActionResume = 47; { no param}
mcActionSetControllerKeysEnabled = 48; { param is Boolean}
mcActionGetTimeSliderRect = 49; { param is pointer to rect}
mcActionMovieEdited = 50; { no param}
mcActionGetDragEnabled = 51; { param is pointer to Boolean}
mcActionSetDragEnabled = 52; { param is Boolean}
type
mcAction = INTEGER;
const
mcFlagSuppressMovieFrame = $1;
mcFlagSuppressStepButtons = $2;
mcFlagSuppressSpeakerButton = $4;
mcFlagsUseWindowPalette = $8;
mcFlagsDontInvalidate = $10;
mcPositionDontInvalidate = $20;
type
mcFlags = LONGINT;
MCActionFilterProcPtr = ProcPtr; { FUNCTION MCActionFilter(mc: MovieController; VAR action: INTEGER; params: UNIV Ptr): BOOLEAN; }